<template>
    <ol>
        <li v-for="(item, index) in nums">
            {{ index }} => {{ item }}
        </li>
    </ol>
    <ul>
        <li v-for="item,index in objs">
            {{ index }} => {{ item.name }} + {{ item.age }}
        </li>
    </ul>
    <p v-for="item, index in 5">
        {{ index }} => {{ item }}
    </p>
</template>

<script setup>
    const nums = [11, 22, 33, 44]
    const objs = [{ name : 1, age : 18 },{ name : 2, age : 19 },{ name : 3, age : 20 }]
</script>

<style scoped>

</style>